package com.huatai.datacenter.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Lion
 * @date 2023/3/13  10:06
 */
@Data
@TableName(value = "tb_datasource")
@ApiModel("数据源连接信息")
public class DataSourceEntity extends BaseEntity {

	@TableField("dataSourceType")
	@ApiModelProperty(value = "数据源类型")
	private String dataSourceType;

	@TableField("connectName")
	@ApiModelProperty(value = "连接名称")
	private String connectName;

	@TableField("url")
	@ApiModelProperty(value = "连接地址")
	private String url;

	@TableField("username")
	@ApiModelProperty(value = "用户名称")
	private String username;

	@TableField("password")
	@ApiModelProperty(value = "密码")
	private String password;

	@TableField("databaseType")
	@ApiModelProperty(value = "数据库类型")
	private String databaseType;

	@TableField("driver")
	@ApiModelProperty(value = "jdbc驱动类")
	private String driver;

	@TableField("tableSql")
	@ApiModelProperty(value = "查询所有表名称的SQL")
	private String tableSql;

	@TableField("databaseName")
	@ApiModelProperty(value = "数据库名")
	private String databaseName;

	@TableField("comments")
	@ApiModelProperty("描述")
	private String comments;

}
